﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
using Core;
using Common;

namespace MyCart
{
    public class MyCartContext:DbContext,IDbContext
    {
        public MyCartContext()
            : base("name=MyCartContext")
        {
        }

        public DbSet<Product> Product { get; set; }
        public DbSet<Category> Category { get; set; }
        //public DbSet<User> User { get; set; }
        public DbSet<Country> Country { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            //modelBuilder.Configurations.Add();
            base.OnModelCreating(modelBuilder);
        }
    }
}